Raspberry Pi advanced GPIO library, wiringpi2 for python using notes (4) practice DHT11 decoding, gpiodht11
DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5% RH, temperature +-2 ℃, range humidity 20-90% RH, temperature 0 ~ 50 deg C.
The encapsulated modules I b
executable files, while easyarm im287 cannot. Easyarm im287 uses the busybox instruction set, which is also different from the Debian Instruction Set in Raspberry Pi.
[Related blog] [easyarm I. mx28 learning notes-file IO operations gpio] [Raspberry Pi learning notes-shell
controlling physical devices over the Internet is a powerful and exciting thing, and the Raspberry Pi comes from this idea. There are a lot of great examples on our blog.Note: Not really in any place, of course you need to connect some things to the network, connected to the Internet computer and electricity. So don't give us a letter because of this:)# # How does GPIO
Raspberry Pi advanced GPIO library, wiringpi2 for python Use note (3) GPIO operations, gpiowiringpi2
The core function of the GPIO library is to operate GPIO. GPIO is the "general input
Gpio Library core function, of course, is the operation of Gpio, Gpio is the "general input/Output" interface, such as lighting a LED, relays, or through the IIC SPI 1-wire and other protocols, read, write data, this is the use of Gpio, can say no gpio,
Raspberry Pi Raspberry the GpioRaspberry PI versions hardware schematic diagram: https://www.raspberrypi.org/documentation/hardware/raspberrypi/README.md configuration
Two x 5v,3.3v output ports
IO input/output voltage 0-3.3v
Output PWM Support
Two-way SPI bus
Two-way IIC bus
Serial
Common Raspberry Pi interface number is divided into two kinds of 26-pin a 40-pin, according to their own PI can!Pin definition is divided into two, the first is more common, the second relatively less use, at least I am, but in the next article will use the second serial communication definition!The first type of definition:The second definition:Three,
0. PrefaceRaspberry Pi can be painless starter Linux, which controls the Raspberry Pi gpio through command and shell scripting. With this article you can familiarize yourself with multiple Linux commands and familiarize yourself with the shell scripting methods and have a basic understanding of IO redirection. I lea
to scan the register for the interrupt number of the interrupt, and call the corresponding callback function if the interrupt occurs.1.for_each_set_bit (i, EDSR, + ) //cycle to find a bit in the EDSR that is 1 is interrupted 2.Generic_handle_irq (Gpio_to_irq (GPIO));//interrupt callback function that calls the interrupt vector (will be filled in when the driver requests an IRQ resource) GPIO_TO_IRQ (GPIO
Have done some works of the internet of things, because do not want to always do the app to control, because not everyone to download your own app, browser everyone is there, then everyone through the browser Web to access our server, it is not very simple and convenient, using Flask+python.Flask is a lightweight WEB application framework written in Python that is simple to use and easy to get started with.Install Flask:sudo apt-get install Python-pip
After buying the Raspberry Pi, what can I do with it? There are a few ideas to share with the beginner's teaching film, which is well worth a visit. Http://www.youtube.com/user/RaspberryPiBeginners 1.Plug in the expansion card, DIY or teaching.The main usage, of course, is to plug in a GPIO card, put on a noodle board, pull some electrical circuit, control what t
The DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5%RH, temperature +-2℃, range humidity 20-90%rh, temperature 0~50℃. I bought a good package of modules, the top with a pull-up resistor, directly to the Raspberry Pi can be gray, purple, blue respectively represents data, 3.3V, 0V, to the Raspberry
On-line tutorials, general Python with Rpi.gpio to control the Raspberry Pi Gpio, and C + + generally use WRINGPI library to operate Gpio,rpi.gpio too simple, many advanced features do not support, such as I2C/SPI library, etc., but also lack of high-precision timing and other advanced features. In contrast, WIRINGPI i
The GPIO pin has two modes board and BCM.1.GPIO output Control LED: Code: (1) Using board mode, GPIO.setmode(GPIO.BOARD) . Pin 35th is GPIO19 under BCM.(2) Set pin 35 to output mode,GPIO.setup(35,GPIO.OUT)(3) on the GPIO35 pin output high level, can also be Gpio.high2.GPIO interface for input signal: Circuit dia
-Expression-to-match-string-not-containing-a-word[Default:]--on-dup Ondup What does when the same file/folder exists in theDestination: ' Overwrite ', ' skip ', ' Prompt ' [default:Overwrite--no-symlink DON ' T follow symbol links when uploading/syncing up[Default:true]--disable-ssl-check DON ' T verify host SSL cerificate [Default:true]-C,--clean 1:clean settings (remove the token file) 2:cleanSettings and hash cache [default:0]Commands:Help Command-provide some information for the commandClean
expose.NotesThis solution can take care of most restricted network environments, but some firewalls call deep packet checks on external traffic, and they often block out information that is transmitted in the same way as this article does. But I haven't tested it yet behind a firewall like this. At the same time, although I use a lot of cryptography-based tools (OPENVPN,HTTPS,SSH), I have not very rigorously audited this configuration scheme (LCTT: The author means that this package can help yo
follow this lesson, you need the following devices or software: Hardware section Raspberry Pi Adafruit Control Cable The logic level of this cable is 3.3V so it is safe, but not all kinds of cables are 3.3v! Only use the Adafruit control cable in this tutorial to avoid damaging the gpio pins on the small faction. So
install only qmake, useless (sudo apt-get install Qt4-qmake). Qt official website download that installation package can be large, how to do, because the use of Debian raspberry, search for a Debian Qt, find out if there is no source and the name of the installation package. Found the following address, Http://packages.debian.org/unstable/main/qt-sdk looked after a sudden cheerful, installed Libqt4-dev seems to be possible. Decisive sudo apt-get inst
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.